package com.talkingdata.hadoop.guard.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DataTime {
    public static String createTime2String(){
        Date d = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(d);
    }
    public static Long createTime2Long(){
        return System.currentTimeMillis();
    }
}
